//
//	File Name   :	OpenGLMesh.cpp
//	Description :	OpenGLMesh implementation file.
//	Author		:	William McVicar
//  Mail		:	mcvicar.william@gmail.com
//

//  Precompiled Header
#include "CommonDefines.h"
#ifdef OPENGL

//  Library Includes

//  Local Includes

//  This includes
#include "OpenGLMesh.h"

//	Macros

//  Static Variables

//  Static Function Prototypes

//  Implementation

namespace Protein
{

Mesh::Mesh()
: GeometryChunk()
{

}

Mesh::~Mesh()
{

}

bool Mesh::Load3DS( const c8* _szFilename )
{
	if( !GeometryChunk::Load3DS( _szFilename ) )
		return false;

	m_pVertexFormat = new VertexFormat( m_pVertexFormatBase );
	return true;
}

bool Mesh::LoadFBX( const c8* _szFilename )
{
	if( !GeometryChunk::LoadFBX( _szFilename ) )
		return false;

	m_pVertexFormat = new VertexFormat( m_pVertexFormatBase );
	return true;
}

bool Mesh::Load( const c8* _szFilename )
{
	if( !GeometryChunk::Load( _szFilename ) )
		return false;

	m_pVertexFormat = new VertexFormat( m_pVertexFormatBase );
	return true;
}

}

#endif